home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d20 / sqsh_100.arc / COMPRESS.CFG < prev    next >
Text File  |  1991-11-06  |  5KB  |  145 lines

  1. ; COMPRESS.CFG contains entries for the various compression programs which
  2. ; you may wish to use with Squish and Maximus.  Each compression progrm
  3. ; should have its own separate entry, and each entry should begin with
  4. ; the text 'Archiver <name>', where <name> is a short name which can
  5. ; be used to refer to the archiver in SQUISH.CFG.
  6. ;
  7. ; IMPORTANT NOTE:  the order of the archiver entries within this file
  8. ; is VERY important.  The FIRST archiver specified will be used as
  9. ; a default, if no 'Pack' statement exists for any given node in
  10. ; SQUISH.CFG.
  11. ;
  12. ; However, when trying to unpack a compressed file, the list of
  13. ; archivers is scanned in a REVERSE order.  This is especially important
  14. ; in the case of ARC and PAK files, since PAK and ARC use the same
  15. ; identification character at the beginning of the file.  (The identity
  16. ; of a PAK-type file must be checked first, in case the file uses a PAK
  17. ; compression method, which PKArc and friends can't handle.)  This is
  18. ; why PAK is listed AFTER PKArc in the distribution control file.
  19.  
  20.  
  21.  
  22. ; Phil Katz's PKPak program, in SEA compatibility mode
  23.  
  24. Archiver ARC
  25.  
  26.   ; The 'Extension' keyword tells Squish that archives of this flavour
  27.   ; will commonly use the specified file extension.  This isn't used
  28.   ; for decompressing inbound mail packets, but Squish needs to know
  29.   ; about it anyway.
  30.  
  31.   Extension     ARC
  32.  
  33.   ; Unless you are familiar with the internals of compression programs,
  34.   ; the `Ident' keyword (see below) should not be modified.  Two numbers
  35.   ; follow the keyword, each separated by a comma.  When attempting to
  36.   ; decompress an archive of an unknown type, Max and Squish will use
  37.   ; this informtion to automatically identify different types of archives.
  38.   ;
  39.   ; The first number after 'Ident' contains the OFFSET at which a special
  40.   ; identifying marker can be located.  Positive entries work in the
  41.   ; expected manner, whereas negative entries can be used to indicate
  42.   ; offsets from the END of a compressed file.  However, an offset of
  43.   ; "-2" is the LAST character, and an offset of "-3" is the SECOND-LAST
  44.   ; character, etc.
  45.   ;
  46.   ; Following the OFFSET is a series of hexadecimal numbers which
  47.   ; represent the text which can be found at the specified offset in the
  48.   ; compressed mail bundle.  Each byte in the compressed file should
  49.   ; be represented by the appropriate hexadecimal character.  For example,
  50.   ; an uppercase 'A' can be represented with a '41', which is the ASCII
  51.   ; code for 'A' (in hexadecimal).  Strings of characters may also
  52.   ; be recognized by simply specifying more than one sequence of
  53.   ; bytes.  (For an example, see the 'Ident' keyword for PKZip or ZOO.)
  54.  
  55.   Ident         0,1a
  56.  
  57.   ; The Add command tells Squish how to add a packet to an archive of the
  58.   ; specified type.  This should be the normal 'add' command of your
  59.   ; archiver, with one exception: the two special macros, "%a" and "%f",
  60.   ; will be translated to the name of the archive and file to add
  61.   ; (respectively).
  62.  
  63.   Add           pkpak -oct a %a %f
  64.  
  65.   ; The Extract command tells Squish how to remove packets from an
  66.   ; archive of the specified type.  "%a" will be translated to the name
  67.   ; of the archive, and "%f" will be translated to the name of the
  68.   ; file to extract.  (The "%f" specification may be translated into
  69.   ; a wildcard!)
  70.  
  71.   Extract       pkunpak /r %a %f
  72.  
  73.   ; The View command tells Squish how to get a listing of the contents
  74.   ; of the specified archive.  As above, the "%a" will be translated
  75.   ; into the name of the archive to process.  This command isn't currently
  76.   ; used by Squish, but it may be used in the future.
  77.  
  78.   View          pkpak v %a
  79. End Archiver
  80.  
  81.  
  82. ; NoGate's PAK program
  83.  
  84. Archiver PAK
  85.   Extension     PAK
  86.   Ident         -2,fe
  87.   Add           pak a %a %f
  88.   Extract       pak e /wn %a %f
  89.   View          pak v %a
  90. End Archiver
  91.  
  92. ; Phil Katz's PKZip
  93.  
  94. Archiver ZIP
  95.   Extension     ZIP
  96.   Ident         0,504b0304                      ; "PK^c^d"
  97.   Add           pkzip -a %a %f
  98.   Extract       pkunzip -o %a %f
  99.   View          pkzip -v %a
  100. End Archiver
  101.  
  102. ; Haruyasu Yoshizaki's LHarc program, in 1.13 compatibility mode
  103.  
  104. Archiver LH113
  105.   Extension     LZH
  106.   Ident         2,2d6c68                        ; "-lh"
  107.   Add           lha a /o /m %a %f
  108.   Extract       lha e %a %f
  109.   View          lha l %a
  110. End Archiver
  111.  
  112. ; Haruyasu Yoshizaki's LHarc program, in maximum compression mode
  113.  
  114. Archiver LHarc
  115.   Extension     LZH
  116.   Ident         2,2d6c68                        ; "-lh"
  117.   Add           lha a /m %a %f
  118.   Extract       lha e %a %f
  119.   View          lha l %a
  120. End Archiver
  121.  
  122. ; Rahul Dhesi's ZOO program
  123.  
  124. Archiver ZOO
  125.   Extension     ZOO
  126.   Ident         0,5a4f4f                        ; "ZOO"
  127.   Add           zoo a: %a %f
  128.   Extract       zoo e:O %a %f
  129.   View          zoo v %a
  130. End Archiver
  131.  
  132. ; Robert Jung's ARJ program
  133. ;
  134. ; If you're short on memory, add the "-m4" option to the "arj a" command.
  135. ; Doing so will make ARJ use about 64K less memory.
  136.  
  137. Archiver ARJ
  138.   Extension     ARJ
  139.   Ident         0,60ea
  140.   Add           arj a -e %a %f
  141.   Extract       arj e -n %a %f
  142.   View          arj l %a
  143. End Archiver
  144.  
  145.